package com.tutu.elementui.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * @Program: SpringBoot
 * @Description: 博客文章实体类
 * @Author: JK.TuTu
 * @Create: 2022-11-02 10:16
 **/
@Data
@NoArgsConstructor
@Accessors(chain = true)
@ToString
public class Blog {
    private Integer id;

    private String title;

    private String author;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createTime;

    private int views;

}